// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from 'next'

type Data = {
  list: listItem[],
}
type listItem = {
  id: string
}
export default function handler(
  req: NextApiRequest,
  res: NextApiResponse<Data>
) {
  const { id } = req.query;
  res.status(200).json({ 
    list: [
      {
        id: '1' 
      },
      {
        id: '2' 
      }
    ]
  })
}
